<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="style.css" rel="stylesheet" type="text/css" media = "screen">
<link href="print.css" rel="stylesheet" type="text/css" media = "print">

</head>
<body>
<div id = "wrapper">

<div id = "container">
	<h1 class = "header">รายงานผลการประเมิน</h1>
	<br>
	<div class = "center" id = "report">
		<button class="print" onclick="javascript:window.print()">พิมพ์รายงาน</button>
		<h2>รายงานผลการประเมินตนเอง</h2>
		{loop="group"}
		<table cellpadding = "0" cellspacing = "0" border = "0" class = "list">
			<tr>
				<th colspan = "4">{$value.name}</td>
			</tr>
			{loop="all_assessment"}
				{if="$value1.id==$value2.gid"}
					<tr>
						<td class = "topic" colspan = "2">ตัวบงชี้ {$value2.gid}.{$value.sub} {$value2.name}</td>
					</tr>
					<tr class = "head">
						<td class = "w50">เกณฑ์มาตรฐาน</td>
						<td class = "w500">ผลการดำเนินงาน</td>
					</tr>
					<? $i = 0 ?>
					{loop="all_standard"}
						{if="$value3.aid==$value2.id"}

						<? $i++; ?>
							<tr>
								<td>{$i}).</td>
								<td>{$value3.result}</td>
							</tr>
						{/if}
					{/loop}
				{/if}
			{/loop}
		</table>
		{/loop}
	</div>

	<div class = "clear"></div>
</div>

</div> <!-- wrapper -->

</body>
</html>